package com.social.service;

import com.social.pojo.Activity;
import com.social.pojo.Result;
import com.social.pojo.es.EsActivity;

/***
 * @author wjl
 * @date 2023/1/7
 * @desc
 **/
public interface EsActivityService {
    //es添加数据
    void addToES(Activity activity);
    //es修改数据
    Result esUpdate(EsActivity activity);
    //es删除数据
    void esDelete(EsActivity activity);

    EsActivity searchById(String id);

    //根据title或desc查询
    Result searchactivity(String keyword) ;
    //根据title查询并高亮
    Result searchTitleWithHits(String keyword) ;
    //根据title或desc查询并高亮
    Result searchTitleOrDescWithHits(String keyword) ;
}
